package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.Date;
import javax.validation.constraints.*;

@Data
@ApiModel("产品创建参数")
public class ProductCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "分类ID")
    private Integer categoryid;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "产品名称")
    private String name;

    @NotNull(message = "description参数缺失")
    @ApiModelProperty(value = "产品描述")
    private String description;

    @NotNull(message = "image参数缺失")
    @ApiModelProperty(value = "主图")
    private String image;


    @ApiModelProperty(value = "产品图片集，JSON格式")
    private String images;

    @NotNull(message = "details参数缺失")
    @ApiModelProperty(value = "产品详情")
    private String details;


    @ApiModelProperty(value = "搜索关键词")
    private String keywords;


    @ApiModelProperty(value = "是否热门：0-否，1-是")
    private Integer ishot;


    @ApiModelProperty(value = "是否最新：0-否，1-是")
    private Integer isnew;


    @ApiModelProperty(value = "排序")
    private Integer sort;


    @ApiModelProperty(value = "状态：0-下架，1-上架")
    private Integer status;

    @ApiModelProperty(value = "浏览量")
    private Integer views;

}
